package com.topfinance.payment.ebo;

// Generated 2011-1-9 9:12:59 by Hibernate Tools 3.4.0.Beta1

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * TCfgPortIn generated by hbm2java
 */
@Entity
@Table(name = "T_CFG_PORT_IN")
public class TCfgPortInEbo implements java.io.Serializable {

	private Integer oid;

	private String name;

	private String direction;

	private String url;
	
	private TCfgProtocolEbo TCfgProtocol;

	private TCfgTransInEbo TCfgTransIn;

	private TCfgFormatEbo TCfgFormat;

	private TCfgPortOutEbo TCfgPortOut;

	private TCfgNodeEbo TCfgNode;

	private String ipsPermitted;

	public TCfgPortInEbo() {
	}

	public TCfgPortInEbo(Integer oid) {
		this.oid = oid;
	}

	public TCfgPortInEbo(Integer oid, TCfgProtocolEbo TCfgProtocol, TCfgTransInEbo TCfgTransIn, TCfgFormatEbo TCfgFormat,
			TCfgPortOutEbo TCfgPortOut, TCfgNodeEbo TCfgNode, String name, String direction, String url,
			String ipsPermitted) {
		this.oid = oid;
		this.TCfgProtocol = TCfgProtocol;
		this.TCfgTransIn = TCfgTransIn;
		this.TCfgFormat = TCfgFormat;
		this.TCfgPortOut = TCfgPortOut;
		this.TCfgNode = TCfgNode;
		this.name = name;
		this.direction = direction;
		this.url = url;
		this.ipsPermitted = ipsPermitted;
	}

	@Id
	@Column(name = "OID", unique = true, nullable = false, precision = 10, scale = 0)
	@SequenceGenerator(name = "CFG_SEQUNCE_GEN", sequenceName = "S_CFG_SEQUNCE")
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "CFG_SEQUNCE_GEN")	
	public Integer getOid() {
		return this.oid;
	}

	public void setOid(Integer oid) {
		this.oid = oid;
	}

	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "PROT_ID")
	public TCfgProtocolEbo getTCfgProtocol() {
		return this.TCfgProtocol;
	}

	public void setTCfgProtocol(TCfgProtocolEbo TCfgProtocol) {
		this.TCfgProtocol = TCfgProtocol;
	}

	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "TRANS_INFO_ID")
	public TCfgTransInEbo getTCfgTransIn() {
		return this.TCfgTransIn;
	}

	public void setTCfgTransIn(TCfgTransInEbo TCfgTransIn) {
		this.TCfgTransIn = TCfgTransIn;
	}

	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "FORMAT_ID")
	public TCfgFormatEbo getTCfgFormat() {
		return this.TCfgFormat;
	}

	public void setTCfgFormat(TCfgFormatEbo TCfgFormat) {
		this.TCfgFormat = TCfgFormat;
	}

	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "ACK_PORT_ID")
	public TCfgPortOutEbo getTCfgPortOut() {
		return this.TCfgPortOut;
	}

	public void setTCfgPortOut(TCfgPortOutEbo TCfgPortOut) {
		this.TCfgPortOut = TCfgPortOut;
	}

	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "NODE_ID")
	public TCfgNodeEbo getTCfgNode() {
		return this.TCfgNode;
	}

	public void setTCfgNode(TCfgNodeEbo TCfgNode) {
		this.TCfgNode = TCfgNode;
	}

	@Column(name = "NAME", length = 80)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "DIRECTION", length = 1)
	public String getDirection() {
		return this.direction;
	}

	public void setDirection(String direction) {
		this.direction = direction;
	}

	@Column(name = "URL")
	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	@Column(name = "IPS_PERMITTED", length = 256)
	public String getIpsPermitted() {
		return this.ipsPermitted;
	}

	public void setIpsPermitted(String ipsPermitted) {
		this.ipsPermitted = ipsPermitted;
	}

}
